package cn.qiguai.sphapi.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

@Getter
@Setter
public class GoodsCategorySaleAttrsValue {
	private int id;
	private String name;
	private int saleAttrId;

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		GoodsCategorySaleAttrsValue value = (GoodsCategorySaleAttrsValue) o;
		return id == value.id;
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, name, saleAttrId);
	}
}
